package cn.zhuama.org.domain;

import java.math.BigDecimal;
import java.util.Date;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.zhuama.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 实体类：
 */
public class Shop extends BaseDomain{
    //提交等待审核
    public static final Integer WAITING_FOR_REVIEW = 1;
    //审核等待通过
    public static final Integer APPROVED_AND_AWAITING_ACTIVATION = 2;
    //审核通过
    public static final Integer ACTIVATION_SUCCESS = 3;
    //驳回
    public static final Integer REJECT = 4;
//    /**
//     * 店铺名称
//     */
//    private String name;
//    /**
//     * 店铺座机
//     */
//    private String tel;
//    /**
//     * 入驻时间
//     */
//    private Date registerTime = new Date();
//    /**
//     * 店铺状态：1待审核，2审核通过待激活，3激活成功，4驳回
//     */
//    private Integer state;
//    /**
//     * 店铺地址
//     */
//    private String address;
//    /**
//     * 店铺logo
//     */
//    private String logo;
//    /**
//     * 店铺管理员ID
//     */
//    private Long adminId;
//
//    private Employee admin;
        //店铺名称
        @Excel(name = "店铺名称",orderNum = "1",width = 30)
        private String name;
        //电话座机
        @Excel(name = "店铺电话",orderNum = "2",width = 30)
        private String tel;
        //入驻时间
        @Excel(name = "入驻时间",orderNum = "3",width = 30,exportFormat="yyyy-MM-dd")
        @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
        private Date registerTime = new Date();
        //店铺状态：待审核【1】 ，审核通过，待激活【2】，激活成功【3】，审核失败->驳回【4】
        @Excel(name = "店铺状态",orderNum = "4",width = 30)
        private Integer state = 1;
        //店铺地址
        @Excel(name = "店铺地址",orderNum = "5",width = 30)
        private String address;
        //店铺logo
        @Excel(name = "店铺logo",orderNum = "6",width = 30)
        private String logo;
        //店铺管理员ID
        private Long adminId;
        //关联对象 - 店铺管理员对象
        private Employee admin;


    public  Employee getAdmin(){
        return admin;
    };

    public void setAdmin(Employee admin) {
        this.admin = admin;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Date getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public Long getAdminId() {
        return adminId;
    }

    public void setAdminId(Long adminId) {
        this.adminId = adminId;
    }

    @Override
    public String toString() {
        return "Shop{" +
        ", name=" + name +
        ", tel=" + tel +
        ", registerTime=" + registerTime +
        ", state=" + state +
        ", address=" + address +
        ", logo=" + logo +
        ", adminId=" + adminId +
        "}";
    }


}
